package com.chinacoal.microservice.impl.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.chinacoal.microservice.model.wofkflow.QueryProcessBusinessParam;
import com.chinacoal.microservice.model.wofkflow.entity.ProcessBusinessEntity;

/**
 * @Package: com.chinacoal.microservice.impl.mapper.ProcessBusinessMapper
 * @ClassName: ProcessBusinessMapper
 * @ClassDesc: 流程业务授权Mapper
 * @Createby: sunh
 * @CreatedDate: 2019-11-29 09:16:16
 */
public interface ProcessBusinessMapper extends BaseMapper<ProcessBusinessEntity> {

	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.ProcessBusinessMapper.findList
	 * @MethodName: findList
	 * @MethodDesc: 查询流程业务授权列表
	 * @ParamList: {
	 *				 @param pages
	 *				 @param queryParam
	 *			   }
	 * @Return: List<ProcessBusinessEntity>
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-03 15:27:50
	 */ 
	public List<ProcessBusinessEntity> findList(Page<ProcessBusinessEntity> pages, QueryProcessBusinessParam queryParam) throws Exception;

	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.ProcessBusinessMapper.getProcessByBusinessCode
	 * @MethodName: getProcessByBusinessCode
	 * @MethodDesc: 查询流程业务授权详情
	 * @ParamList: {
	 *				 @param orgId
	 *				 @param domainId
	 *				 @param businessCode
	 *			   }
	 * @Return: ProcessBusinessEntity
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-03 15:28:37
	 */ 
	public ProcessBusinessEntity getProcessByBusinessCode(@Param("orgId") Integer orgId,
														  @Param("domainId") String domainId, 
														  @Param("businessCode") String businessCode) throws Exception;

	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.ProcessBusinessMapper.getNumberByBusinessCode
	 * @MethodName: getNumberByBusinessCode
	 * @MethodDesc: 查询流程业务授权数量
	 * @ParamList: {
	 *				 @param orgId
	 *				 @param domainId
	 *				 @param businessCode
	 *			   }
	 * @Return: Integer
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-03 15:28:48
	 */ 
	public Integer getProcessBusinessCount(@Param("orgId") Integer orgId, 
										   @Param("domainId") String domainId, 
										   @Param("businessCode") String businessCode);
}
